package com.zhanghu.backendZray.pojo.dto.weather;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author ZhangDong
 * @date 2024/9/11 15:11
 */
@Data
public class WeatherAPIDetailDTO {

    private WeatherAPILocationDTO location;
    // 具体的天气数据
    private List<WeatherAPIDailyDTO> daily;
    // 数据更新时间（该城市的本地时间）
    @JsonAlias(value = "last_update")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastUpdate;
}
